import dayjs from "dayjs";

export function formatMonthDay(date, formatStr = "MM月DD日") {
  return dayjs(date).format(formatStr);
}

// 计算两个日期中间共相隔多少天
export function getDiffDays(stateDay, endDate) {
  return dayjs(endDate).diff(stateDay, "day");
}
